import request from '@/utils/request'

// 生产领料列表
export function SelectSCLL(data) {
  return request({
    url: '/tPrdPickmtrl/queryPickmtrlList',
    method: 'post',
    data
  })
}
// 生产领料列表- 提交
export function submitPrdPickmtrl(data) {
  return request({
    url: '/tPrdPickmtrl/submitPrdPickmtrl',
    method: 'post',
    data
  })
}
// 生产领料列表- 反提交
export function notsubmitPrdPickmtrl(data) {
  return request({
    url: '/tPrdPickmtrl/notsubmitPrdPickmtrl',
    method: 'post',
    data
  })
}
// 生产领料列表- 反审核
export function unauditPrdPickmtrls(data) {
  return request({
    url: '/tPrdPickmtrl/unauditPrdPickmtrls',
    method: 'post',
    data
  })
}
// 生产领料列表- 审核
export function auditPrdPickmtrls(data) {
  return request({
    url: '/tPrdPickmtrl/auditPrdPickmtrls',
    method: 'post',
    data
  })
}
// 生产领料列表- 删除
export function delPrdPickmtrl(data) {
  return request({
    url: '/tPrdPickmtrl/delPrdPickmtrl',
    method: 'post',
    data
  })
}
// 委外领料列表
export function querySubPickmtrlList(data) {
  return request({
    url: '/tSubPickmtrl/querySubPickmtrlList',
    method: 'post',
    data
  })
}
// 委外领料 提交
export function submitSubPickmtrl(data) {
  return request({
    url: '/tSubPickmtrl/submitSubPickmtrl',
    method: 'post',
    data
  })
}
// 委外领料 反提交
export function notsubmitSubPickmtrl(data) {
  return request({
    url: '/tSubPickmtrl/notsubmitSubPickmtrl',
    method: 'post',
    data
  })
}
// 委外领料 反审核
export function unauditSubPickmtrls(data) {
  return request({
    url: '/tSubPickmtrl/unauditSubPickmtrls',
    method: 'post',
    data
  })
}
// 委外领料 审核
export function auditSubPickmtrls(data) {
  return request({
    url: '/tSubPickmtrl/auditSubPickmtrls',
    method: 'post',
    data
  })
}
// 委外领料 删除
export function delSubPickmtrls(data) {
  return request({
    url: '/tSubPickmtrl/delSubPickmtrls',
    method: 'post',
    data
  })
}
// 下推生产补料
export function pushPrdRepair(data) {
  return request({
    url: '/tPrdFeedmtrl/pushPrdRepair',
    method: 'post',
    data
  })
}
// 查询委外领料
export function SelectWWPICKMTRL(params) {
  return request({
    url: '/tSubPickmtrl/querySubPickmtrlDetails',
    method: 'get',
    params
  })
}
// 修改委外生产领料
export function updateWWPICKMTRL(data) {
  return request({
    url: '/tSubPickmtrl/updateSubPickmtrlDetails',
    method: 'post',
    data
  })
}
// 更新委外退料单
export function updateSubPickmtrlDetails(data) {
  return request({
    url: '/tSubReturnmtrl/updateSubPickmtrlDetails',
    method: 'post',
    data
  })
}
// 反提交委外退料单
export function notsubmitSubReturnmtrl(data) {
  return request({
    url: '/tSubReturnmtrl/notsubmitSubReturnmtrl',
    method: 'post',
    data
  })
}
// 提交委外退料单
export function submitSubReturnmtrl(data) {
  return request({
    url: '/tSubReturnmtrl/submitSubReturnmtrl',
    method: 'post',
    data
  })
}
// 反审核委外退料单
export function unauditSubReturnmtrls(data) {
  return request({
    url: '/tSubReturnmtrl/unauditSubReturnmtrls',
    method: 'post',
    data
  })
}
// 审核委外退料单
export function auditSubReturnmtrls(data) {
  return request({
    url: '/tSubReturnmtrl/auditSubReturnmtrls',
    method: 'post',
    data
  })
}
// 删除委外退料单
export function delSubReturnmtrls(data) {
  return request({
    url: '/tSubReturnmtrl/delSubReturnmtrls',
    method: 'post',
    data
  })
}
// 查询生产补料单 - 分页
export function queryPrdRepairList(data) {
  return request({
    url: '/tPrdReturnmtrl/queryPrdReturnList',
    method: 'post',
    data
  })
}
// 查询委外补料单列表 - 分页
export function querySubRepairList(data) {
  return request({
    url: '/tSubReturnmtrl/querySubReturnmtrlList',
    method: 'post',
    data
  })
}
// 下推公共接口
export function pushPublic(data) {
  return request({
    url: '/common/push',
    method: 'post',
    data
  })
}
// 下推生产领料
export function pushPickmtrl(data) {
  return request({
    url: '/tPrdPickmtrl/pushPickmtrl',
    method: 'post',
    data
  })
}
// 下推生产领料
export function isAblePush(data) {
  return request({
    url: '/tPrdMo/isAblePush',
    method: 'post',
    data
  })
}
// 生产领料单下推明细
export function queryMtrlDetails(params) {
  return request({
    url: '/tPrdPpbom/queryMtrlDetails',
    method: 'get',
    params
  })
}
// 委外领料单下推明细
export function outMtrlDetails(params) {
  return request({
    url: '/tSubPpbom/queryMtrlDetails',
    method: 'get',
    params
  })
}
// 生产订单下推明细
export function queryStockDetails(params) {
  return request({
    url: '/tPrdMoentry/queryStockDetails',
    method: 'get',
    params
  })
}
// 委外订单下推明细
export function outStockDetails(params) {
  return request({
    url: '/tSubReqorderentry/queryStockDetails',
    method: 'get',
    params
  })
}

// 生产补料列表
export function querySupplementList(data) {
  return request({
    url: '/tPrdSupplement/querySupplementList',
    method: 'post',
    data
  })
}
// 更新生产补料列表
export function updateSuppleDetails(data) {
  return request({
    url: '/tPrdSupplement/updateSuppleDetails',
    method: 'post',
    data
  })
}
// 生产补料详情
export function querySupplementDetails(params) {
  return request({
    url: '/tPrdSupplement/querySupplementDetails',
    method: 'get',
    params
  })
}
// 反提交生产补料列表
export function notsubmitPrdSupplement(data) {
  return request({
    url: '/tPrdSupplement/notsubmitPrdSupplement',
    method: 'post',
    data
  })
}
// 提交生产补料列表
export function submitPrdSupplement(data) {
  return request({
    url: '/tPrdSupplement/submitPrdSupplement',
    method: 'post',
    data
  })
}
// 反审核生产补料列表
export function notauditPrdSupplements(data) {
  return request({
    url: '/tPrdSupplement/notauditPrdSupplements',
    method: 'post',
    data
  })
}
// 审核生产补料列表
export function auditPrdSupplements(data) {
  return request({
    url: '/tPrdSupplement/auditPrdSupplements',
    method: 'post',
    data
  })
}
// 删除生产补料列表
export function delPrdSupplements(data) {
  return request({
    url: '/tPrdSupplement/delPrdSupplements',
    method: 'post',
    data
  })
}
